home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Dopendir(2) Oct. 1, 1991 Dopendir(2)
-
-
- N✓NA✓AM✓ME✓E
- Dopendir - open a directory for reading
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- LONG Dopendir( char *name, WORD flag );
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓D_✓o_✓p_✓e_✓n_✓d_✓i_✓r opens the directory whose name is pointed to by
- _✓n_✓a_✓m_✓e for reading. A 32 bit directory handle is returned
- which may be passed to _✓D_✓r_✓e_✓a_✓d_✓d_✓i_✓r to actually read the
- directory. _✓f_✓l_✓a_✓g controls the way directory operations are
- performed. If flag == 1, then the directory is read in
- "compatibility" mode, if flag == 0 then directory opera-
- tions are performed in "normal" mode. In "compatibility"
- mode, file systems act as if the _✓F_✓s_✓f_✓i_✓r_✓s_✓t and _✓F_✓s_✓n_✓e_✓x_✓t func-
- tions were being used; in particular, if it is possible
- file names will be restricted to the DOS 8 character name
- + 3 character extension convention, and will be in upper
- case. In "normal" mode, file systems do not attempt to
- restrict the range of names. Moreover, in this mode the
- _✓D_✓r_✓e_✓a_✓d_✓d_✓i_✓r system call will also return a file index number
- (similar to the Unix inode number) along with the file
- name.
-
- New programs should generally use normal mode where possi-
- ble.
-
- R✓RE✓ET✓TU✓UR✓RN✓NS✓S
- A 32 bit directory handle, on success. Note that this
- handle may be negative, but will never contain the pattern
- 0xFF in the upper byte, whereas all errors do contain this
- pattern in the upper byte.
-
- EPTHNF if _✓n_✓a_✓m_✓e is not a valid directory
-
- EACCDN if the directory is not accessible by this program
-
- ENSMEM if the kernel is unable to allocate memory needed
- for the directory operations
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓D_✓c_✓l_✓o_✓s_✓e_✓d_✓i_✓r(2), _✓D_✓r_✓e_✓a_✓d_✓d_✓i_✓r(2), _✓D_✓r_✓e_✓w_✓i_✓n_✓d_✓d_✓i_✓r(2)
-
- B✓BU✓UG✓GS✓S
- Failure to call Dclosedir() when the search is done could
- result in the system eventually running out of file
- indices; this is fatal. So always call Dclosedir() when
- you're finished with the directory search!
-
-
-
-
-
-
-
-
-
- Version 0.9 MiNT Programmer's Manual 1
-
-
-